const state = {
  activeStatus:'5',
  pageLen: 10,// 每一页的条数
  currentPage:null,// 当前页码
}

const getters = {
  // 获取当前状态
  getActiveState (state) {
    return state.activeStatus
  },
  // 获取每页的条数
  getPageLen (state) {
    return state.pageLen
  },
  // 获取当前页码
  getCurrentPage (state) {
    return state.currentPage
  }
}

const mutations = {
   
  // 获取当前状态
  setActiveState (state, setThing) {
    return state.activeStatus = setThing
  },
  // 获取每页的条数
  setPageLen (state, setThing) {
    return state.pageLen = setThing
  },
  // 获取当前页码
  setCurrentPage (state, setThing) {
    return state.currentPage = setThing
  }
}

const actions = {

}

export default{
  namespaced: true,// 开启模块的命名空间
  state,
  getters,
  mutations,
  actions
}